module Base
{

	model Trailer_mobilebase_DoorFrontRight
	{
		mesh = vehicles/LiazMobileTrailers|TrailerDoor,
		shader = vehicle_noreflect,
		scale = 1,
		static = FALSE,
        boneWeight = TrailerDoorBone 1.0,
	}
	

	template vehicle Trailer_mobilebase_doors
	{

		template = Door/part/DoorFrontRight,

		

		part DoorFrontRight
		{
			model Default
			{
				file = Trailer_mobilebase_DoorFrontRight,
			}

			area = SeatFrontRight,
			

			anim Close
			{
                                sound = VehicleDoorCloseStandard,
				anim = TrailerDoor_closing,
				reverse = FALSE,
				rate = 4.0,
			}

			anim Open
			{
                                sound = VehicleDoorOpenStandard,
				anim = TrailerDoor_closing,
				reverse = TRUE,
				rate = 4.0,
			}

			anim Closed
			{
				anim = TrailerDoor_closing,
				reverse = TRUE,
				animate = FALSE,
			}

			anim Opened
			{
				anim = TrailerDoor_closing,
				reverse = FALSE,
				animate = FALSE,
			}

			table uninstall
			{
				requireUninstalled =,
			}
		}

		
		part Door*
		{
			category = door,
			mechanicRequireKey = true,

			table install
			{
				test = Vehicles.InstallTest.Default,
				complete = Vehicles.InstallComplete.Door,
			}

			table uninstall
			{
				test = Vehicles.UninstallTest.Default,
				complete = Vehicles.UninstallComplete.Door,
			}

			lua
			{
				create = Vehicles.Create.Door,
				init = Vehicles.Init.Door,
				use = Vehicles.Use.Door,
			}
		}
	}
}